<!DOCTYPE html>
<html lang="en" xmlns:zxw="http://www.w3school.com.cn"  >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>首页</title>
    <link rel="stylesheet" href="../${dirs}/js/common/layui/css/layui.css">
    <link rel="stylesheet" href="../${dirs}/css/common/animate.css" />
    <link rel="stylesheet" href="../${dirs}/css/common/common.css" />
</head>
<body class="layout-zxw zxw-body" >
<div class="layui-form" >
    <form action="" class="zxw-search" >
        <div class="layui-form-item" >
            <#list colimnList as p>
            <#if p.COLUMN_NAME='oper_date' >
            <zxw:input id="${p.COLUMN_NAME}" type="date" dateopt='{"range":"至"}' width="185px" name="${p.COLUMN_NAME}" inline="true" placeholder="请选择${p.COLUMN_COMMENT}" parcel="true" parcelName="${p.COLUMN_COMMENT}" ></zxw:input>
            <#else>
            <zxw:input id="${p.COLUMN_NAME}" name="${p.COLUMN_NAME}" inline="true" placeholder="请输入${p.COLUMN_COMMENT}" parcel="true" parcelName="${p.COLUMN_COMMENT}" ></zxw:input>
            </#if>
            </#list>
            <div class="layui-inline" >
                <zxw:bnt type="query" control="${className_}/queryPage" tableid="${className_}Table" title="查询" ></zxw:bnt>
                <zxw:bnt type="add" control="${className_}/save" url="../html/${path}/add.html" title="新增" ></zxw:bnt>
                <zxw:bnt type="import" control="${className_}/import" url="MY_URL.${DclassName_}.IMPORT" template="填写你的xlx模板文件地址/html/开头" title="导入" ></zxw:bnt>
            </div>
        </div>
    </form>
    <hr />
    <div class="zxw-list" >
        <div class="zxw-table-tool" id="zxw-table-tool"  >
            <zxw:bnt type="delete" class="layui-btn-xs" ico="" control="${className_}/delete" url="MY_URL.${DclassName_}.DELETE" title="批量删除" ></zxw:bnt>
        </div>
        <zxw:table cellMinWidth="10" class="zxw_table layui-table layui-hide" page="true" loading="true" url="MY_URL.${DclassName_}.QUERYPAGE" id="${className_}Table" >
            <zxw:thead class="zxw_head" >
                <zxw:tr class="zxw_tr" >
                    <zxw:th class="zxw_th" type="checkbox" fixed="left" ></zxw:th>
                    <#list colimnList as p>
                    <zxw:th class="zxw_th" field="${p.COLUMN_NAME}" sort="true" title="${p.COLUMN_COMMENT}" ></zxw:th>
                    </#list>
                    <zxw:th class="zxw_th" field="oper_name" sort="true" title="操作人" ></zxw:th>
                    <zxw:th fixed="right" minWidth="120" class="">
                        <zxw:handle title="查看" control="${className_}/queryId" name="query" fun="" url="../html/${path}/add.html" ></zxw:handle>
                        <zxw:handle title="编辑" control="${className_}/save" name="edit" fun="" url="../html/${path}/add.html" ></zxw:handle>
                        <zxw:handle title="删除" control="${className_}/delete" name="delete" class="layui-btn-danger" url="MY_URL.${DclassName_}.DELETE" ></zxw:handle>
                    </zxw:th>
                </zxw:tr>
            </zxw:thead>
        </zxw:table>
    </div>
</div>
<script type="application/javascript" src="../${dirs}/js/common/own/own.js?layui,jquery,njzxw,URL,myurl,myconfig" >
    njzxw.layui.init();

    /**
     * 以下是生成url结构，拷贝至my_url.js中后删除

     ${DclassName_}:{
        QUERYPAGE:'https://${posts}/${model}/${className_}/queryPage',
        QUERYID:'https://${posts}/${model}/${className_}/queryId',
        EDIT:'https://${posts}/${model}/${className_}/update',
        DELETE:'https://${posts}/${model}/${className_}/delete',
        INSERT:'https://${posts}/${model}/${className_}/insert',
        SAVE:'https://${posts}/${model}/${className_}/save',
        IMPORT:'https://${posts}/${model}/${className_}/import',
     },

     *
     */


</script>
</body>
</html>